const departments = [
  {
    compId: 2,
    deptId: 1,
    deptFname: 'CEO',
    deptNm: 'CEO',
    contactAddr: '广东省gzs',
    deptEmail: '111111111@qq.com',
    officePhone: '020-3987398',
    parentDeptId: '',
    principalCnName: '大神',
    zipCode: '000000',
    cmntStr: '',
    status: 1,
    treeLevel: 1
  },
  {
    compId: 1,
    deptId: 2,
    deptFname: 'CEO',
    deptNm: 'CEO',
    contactAddr: '广东省gzs',
    deptEmail: '111111111@qq.com',
    officePhone: '020-3987398',
    parentDeptId: 1,
    principalCnName: '大神',
    zipCode: '000000',
    cmntStr: '',
    status: 0,
    treeLevel: 2
  },
  {
    compId: 1,
    deptId: 3,
    deptFname: 'CEO',
    deptNm: 'CEO',
    contactAddr: '广东省gzs',
    deptEmail: '111111111@qq.com',
    officePhone: '020-3987398',
    parentDeptId: 1,
    principalCnName: '大神',
    zipCode: '000000',
    cmntStr: '',
    status: 0,
    treeLevel: 2
  },
  {
    compId: 1,
    deptId: 4,
    deptFname: 'CEO',
    deptNm: 'CEO',
    contactAddr: '广东省gzs',
    deptEmail: '111111111@qq.com',
    officePhone: '020-3987398',
    parentDeptId: '',
    principalCnName: '大神',
    zipCode: '000000',
    cmntStr: '',
    status: 0,
    treeLevel: 1
  },
  {
    compId: 1,
    deptId: 5,
    deptFname: 'CEO',
    deptNm: 'CEO',
    contactAddr: '广东省gzs',
    deptEmail: '111111111@qq.com',
    officePhone: '020-3987398',
    parentDeptId: 4,
    principalCnName: '大神',
    zipCode: '000000',
    cmntStr: '',
    status: 0,
    treeLevel: 2
  },
  {
    compId: 1,
    deptId: 6,
    deptFname: 'CEO',
    deptNm: 'CEO',
    contactAddr: '广东省gzs',
    deptEmail: '111111111@qq.com',
    officePhone: '020-3987398',
    parentDeptId: 4,
    principalCnName: '大神',
    zipCode: '000000',
    cmntStr: '',
    status: 0,
    treeLevel: 2
  },
  {
    compId: 1,
    deptId: 7,
    deptFname: 'CEO',
    deptNm: 'CEO',
    contactAddr: '广东省gzs',
    deptEmail: '111111111@qq.com',
    officePhone: '020-3987398',
    parentDeptId: 4,
    principalCnName: '大神',
    zipCode: '000000',
    cmntStr: '',
    status: 0,
    treeLevel: 2
  },
  {
    compId: 1,
    deptId: 8,
    deptFname: 'CEO',
    deptNm: 'CEO',
    contactAddr: '广东省gzs',
    deptEmail: '111111111@qq.com',
    officePhone: '020-3987398',
    parentDeptId: 4,
    principalCnName: '大神',
    zipCode: '000000',
    cmntStr: '',
    status: 0,
    treeLevel: 2
  },
  {
    compId: 1,
    deptId: 9,
    deptFname: 'CEO',
    deptNm: 'CEO',
    contactAddr: '广东省gzs',
    deptEmail: '111111111@qq.com',
    officePhone: '020-3987398',
    parentDeptId: '',
    principalCnName: '大神',
    zipCode: '000000',
    cmntStr: '',
    status: 0,
    treeLevel: 1
  },
  {
    compId: 1,
    deptId: 10,
    deptFname: 'CEO',
    deptNm: 'CEO',
    contactAddr: '广东省gzs',
    deptEmail: '111111111@qq.com',
    officePhone: '020-3987398',
    parentDeptId: 9,
    principalCnName: '大神',
    zipCode: '000000',
    cmntStr: '',
    status: 0,
    treeLevel: 2
  }
]

// 测试table
export function getDepts() {
  return {
    url: 'auth/authDeptMgr/all',
    type: 'get',
    data: {
      msg: 'success',
      code: '0',
      data: departments
    }
  }
}

export function getDeptDetail() {
  return {
    url: 'auth/authDeptMgr',
    type: 'get',
    data: {
      msg: 'success',
      code: '0',
      data: {
        compId: 2,
        deptId: 10,
        deptFname: 'CEO',
        deptNm: 'CEO',
        contactAddr: '广东省gzs',
        deptEmail: '111111111@qq.com',
        officePhone: '020-3987398',
        parentDeptId: 9,
        principalCnName: '大神',
        zipCode: '000000',
        cmntStr: '',
        treeLevel: 2
      }
    }
  }
}

export function updateDept() {
  return {
    url: 'auth/authDeptMgr',
    type: 'put',
    data: {
      msg: 'success',
      code: '0',
      data: '操作成功'
    }
  }
}
